﻿using Coldairarrow.Entity.Base_Manage;
using Coldairarrow.Entity.DTO;
using Coldairarrow.Util;
using System.Collections.Generic;
using System.Threading.Tasks;

namespace Coldairarrow.Business.Base_Manage
{
    public interface IBase_JobBusiness
    {
        Task<PageResult<Base_Job>> GetDataListAsync(PageInput<ConditionDTO> input);
        Task<Base_Job> GetTheDataAsync(string id);
        Task AddDataAsync(Base_Job data);
        Task UpdateDataAsync(Base_Job data);
        Task DeleteDataAsync(List<string> ids);
        Task<Base_ColumnStyle[]> GetColumnsAsync(string tabName);

        string StartJob(List<Base_Job> datas);
        string CloseJob(List<Base_Job> datas);
        string ExecuteJob(Base_Job data);
    }
}